﻿package  {
	
	import flash.display.MovieClip;
	
	
	public class Boneco extends MovieClip {
		
		
		public function Boneco() {
			// constructor code
			this.stop();
			
			this.x = 500;
			//this.y = 150;
		}
		
		public Function Update(){
			controlaLanterna();
			
		}
		
		
		private function controlaLanterna():void{
			if( mouseX <= 100){
				this.gotoAndStop(2);
			}
			else if(mouseY >= 100&& mouseY <=200){
				gotoAndStop(3);
			}
			else if(mouseY > 200&& mouseY <=300){
				gotoAndStop(1);
			}
			
		}
		
	}
	
}
